﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class aboutUs : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //string streetaddress;
        //string smapkey = configurationmanager.appsettings["googlemaps.subgurim.net"];
        //subgurim.controles.geocode geocode;
        //streetaddress = "(中国,湖北省,武汉市,武昌区,中国地质大学(武汉) )";
        //geocode = subgurim.controles.gmap.geocoderequest(streetaddress, smapkey);
        //subgurim.controles.glatlng glatlng = new subgurim.controles.glatlng(geocode.placemark.coordinates.lat, geocode.placemark.coordinates.lng);
        //gmap1.setcenter(glatlng, 16, subgurim.controles.gmaptype.gtypes.normal);
        //subgurim.controles.gmarker omarker = new subgurim.controles.gmarker(glatlng);
        //gmap1.addgmarker(omarker);
        //-------- 第二中方法

        GoogleMapForASPNet1.GoogleMapObject.APIKey = "";

        //Specify width and height for map. You can specify either in pixels or in percentage relative to it's container.
        GoogleMapForASPNet1.GoogleMapObject.Width = "500px"; // You can also specify percentage(e.g. 80%) here
        GoogleMapForASPNet1.GoogleMapObject.Height = "400px";

        //Specify initial Zoom level.
        GoogleMapForASPNet1.GoogleMapObject.ZoomLevel = 14;

        //Specify Center Point for map. Map will be centered on this point.
        GoogleMapForASPNet1.GoogleMapObject.CenterPoint = new GooglePoint("1", 30.51833, 114.39959);


        GooglePoint GP = new GooglePoint();
        GP.ID = "2";
        GP.Latitude = 30.51833;    // 精度转化为 大地坐标
        GP.Longitude = 114.39959;  // 纬度
        GP.InfoHTML = "<font color='red' size='xx-large'><B>巅峰书城</B></font><br>地址：中国地质大学（武汉） 52#<br>联系人：刘长春";
        GoogleMapForASPNet1.GoogleMapObject.Points.Add(GP);

    }

}
